<?php

class Captcha extends CIC_S_Controller
{
	function __construct()
	{
		parent::__construct();
	}
	
	function index($width,$height,$code_num)
	{
		$this->load->library('validate_code',array('width'=>$width,'height'=>$height,'code_num'=>$code_num));
		$this->session->set_userdata(array('validate_code'=>strtoupper($this->validate_code->get_validate_code())));
		$this->validate_code->out_img();
	}
}